package com.web.oa.service;



import com.github.pagehelper.PageInfo;
import com.web.oa.pojo.Baoxiaobill;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.task.Comment;
import org.activiti.engine.task.Task;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

public interface WorkFlowService {


    PageInfo<Task> findTaskListByName(String name,int pageNum);

    void saveDeployee(InputStream inputStream, String processName);

    PageInfo<Deployment> findDeploymentList(int pageNum);

    PageInfo<ProcessDefinition> findProcessDefinitionList(int pageNum);

    void saveStartProcess(long baoxiaoId,String username);

    Baoxiaobill findBaoxiaoBillByTaskId(String taskId);

    List<Comment> findCommentByTaskId(String taskId);

    List<String> findOutComeListByTaskId(String taskId);

    void saveSubmitTask(long id, String taskId, String comment, String outcome, String username);

    ProcessDefinition findProcessDefinitionByTaskId(String taskId);

    Map<String, Object> findCoordingByTask(String taskId);

    InputStream findImageInputStream(String deploymentId, String imageName);

    List<Comment> findCommentByBaoxiaoBillId(long id);

    void deleteProcessDefinitionByDeploymentId(String deploymentId);

    Task findTaskByBussinessKey(String bussiness_key);
}
